

<%@ page import="eudjok.Musica" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'musica.label', default: 'Musica')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${musicaInstance}">
            <div class="errors">
                <g:renderErrors bean="${musicaInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="url"><g:message code="musica.url.label" default="Url" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: musicaInstance, field: 'url', 'errors')}">
                                    <g:textField name="url" value="${musicaInstance?.url}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="usuarioExterno"><g:message code="musica.usuarioExterno.label" default="Usuario Externo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: musicaInstance, field: 'usuarioExterno', 'errors')}">
                                    <g:textField name="usuarioExterno" value="${musicaInstance?.usuarioExterno}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="compositor"><g:message code="musica.compositor.label" default="Compositor" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: musicaInstance, field: 'compositor', 'errors')}">
                                    <g:textField name="compositor" value="${musicaInstance?.compositor}" />
                                </td>
                            </tr>
                        

                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="descricao"><g:message code="musica.descricao.label" default="Descricao" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: musicaInstance, field: 'descricao', 'errors')}">
                                    <g:textField name="descricao" value="${musicaInstance?.descricao}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="estilo"><g:message code="musica.estilo.label" default="Estilo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: musicaInstance, field: 'estilo', 'errors')}">
                                    <g:select name="estilo.id" from="${eudjok.Estilo.list()}" optionKey="id" value="${musicaInstance?.estilo?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="letra"><g:message code="musica.letra.label" default="Letra" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: musicaInstance, field: 'letra', 'errors')}">
                                    <g:textField name="letra" value="${musicaInstance?.letra}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="titulo"><g:message code="musica.titulo.label" default="Titulo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: musicaInstance, field: 'titulo', 'errors')}">
                                    <g:textField name="titulo" value="${musicaInstance?.titulo}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
